
<h1><span class="yiyi-st" id="yiyi-13">numpy.random.RandomState.seed</span></h1>
        <blockquote>
        <p>原文：<a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.RandomState.seed.html">https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.RandomState.seed.html</a></p>
        <p>译者：<a href="https://github.com/wizardforcel">飞龙</a> <a href="http://usyiyi.cn/">UsyiyiCN</a></p>
        <p>校对：（虚位以待）</p>
        </blockquote>
    
<dl class="method">
<dt id="numpy.random.RandomState.seed"><span class="yiyi-st" id="yiyi-14"> <code class="descclassname">RandomState.</code><code class="descname">seed</code><span class="sig-paren">(</span><em>seed=None</em><span class="sig-paren">)</span></span></dt>
<dd><p><span class="yiyi-st" id="yiyi-15">种子发电机。</span></p>
<p><span class="yiyi-st" id="yiyi-16">当<a class="reference internal" href="numpy.random.RandomState.html#numpy.random.RandomState" title="numpy.random.RandomState"><code class="xref py py-obj docutils literal"><span class="pre">RandomState</span></code></a>初始化时调用此方法。</span><span class="yiyi-st" id="yiyi-17">它可以再次调用重新种子发电机。</span><span class="yiyi-st" id="yiyi-18">有关详细信息，请参见<a class="reference internal" href="numpy.random.RandomState.html#numpy.random.RandomState" title="numpy.random.RandomState"><code class="xref py py-obj docutils literal"><span class="pre">RandomState</span></code></a>。</span></p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name">
<col class="field-body">
<tbody valign="top">
<tr class="field-odd field"><th class="field-name"><span class="yiyi-st" id="yiyi-19">参数：</span></th><td class="field-body"><p class="first"><span class="yiyi-st" id="yiyi-20"><strong>seed</strong>：int或array_like，可选</span></p>
<blockquote class="last">
<div><p><span class="yiyi-st" id="yiyi-21"><a class="reference internal" href="numpy.random.RandomState.html#numpy.random.RandomState" title="numpy.random.RandomState"><code class="xref py py-obj docutils literal"><span class="pre">RandomState</span></code></a>的种子。</span><span class="yiyi-st" id="yiyi-22">必须可转换为32位无符号整数。</span></p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title"><span class="yiyi-st" id="yiyi-23">也可以看看</span></p>
<p class="last"><span class="yiyi-st" id="yiyi-24"><a class="reference internal" href="numpy.random.RandomState.html#numpy.random.RandomState" title="numpy.random.RandomState"><code class="xref py py-obj docutils literal"><span class="pre">RandomState</span></code></a></span></p>
</div>
</dd></dl>
